<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>个人中心_个人信息</title>
		<link rel="stylesheet" href="__PUBLIC__/css/chushihua.css" />
		<link rel="stylesheet" href="__PUBLIC__/css/gerenxinxi.css" />
		<script src="__PUBLIC__/js/jquery-1.8.3.min.js"></script>
		<script src="__PUBLIC__/js/gerenxinxi.js"></script>
		<script src="__PUBLIC__/hy/uploadify/jquery.min.js" type="text/javascript"></script>
		<script src="__PUBLIC__/hy/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/hy/uploadify/uploadify.css">
		<script type="text/javascript">
        $(function () {
            $(window.parent.document).find("#main").load(function () {
                var main = $(window.parent.document).find("#main");
                main.height(690);
                var thisheight = $(document).height();
                main.height(thisheight);
            });
        });
    </script>	
    	<script type="text/javascript">
		function del(delName,delId){			//点击删除链接，ajax
    	var info=$('#url').val();  //获取url
    	var d='#'+delName;
		var url=info+"/del";		//删除图片的路径
         $.post(url,{'name':delId},function(data){		//ajax后台
            $(d).html(data.info);						//输出后台返回信息
            $(d).hide(3000);							//自动隐藏
        },'json');										//josn格式

		}

		$(function() {
			$('#file_upload').uploadify({
				'formData'     : {
					'timestamp' : '{$time}',            //时间
					'token'     : '{$time | md5}',		//加密字段
					'url'		: $('#url').val()+'/upload/',	//url
					'imageUrl'	: $('#root').val()				//root
				},

				'fileTypeDesc' : 'Image Files',					//类型描述
				//'removeCompleted' : false,    //是否自动消失
        		'fileTypeExts' : '*.gif; *.jpg; *.png',		//允许类型
        		'fileSizeLimit' : '3MB',					//允许上传最大值
				'swf'      : $('#public').val()+'/hy/uploadify/uploadify.swf',	//加载swf
				'uploader' : $('#url').val()+'/uploadify',					//上传路径
				'buttonText' :'文件上传',									//按钮的文字

				'onUploadSuccess' : function(file, data, response) {			//成功上传返回
            	var n=parseInt(Math.random()*100);								//100以内的随机数
            	//alert(n+data);
            	//插入到image标签内，显示图片的缩略图
				$('#image').append('<div id="'+n+'" class="photo"><a href="'+data+'"  target="_blank"><input type="hidden" name="photo[]" value="'+data+'"/><img src="'+data+'"  height=80 width=80 /></a><div class="del"><a href="javascript:vo(0)" onclick=del("'+n+'","'+data+'");return false;>删除</a></div></div>');

				}

			});
		});



	</script>
	</head>
	<body>
		<include file="Public:header_zc" />

<!--最大  div-->
<div class="content">
<!--个人中心   标题-->

<div class="gouwuchebt">
<div class="logo">
		<a href="__APP__/Index/index/"><img src="{$think_path}{$shop_logo.img}" alt="" /></a>
</div>	
<div class="hyzc"><h1>个人中心</h1></div>

</div>
<!--个人中心   end-->

<form class="form-search" action="__APP__/Product/index/" method="post" id="form2">
	<div class="geren_sousuo">
    			<input type="text" placeholder="商品名称" name="keywords"/>
    			<button  type="submit"  name="sub">确定</button>
    </div>
    </form>
<!--搜索商品  end-->

<!--我的订单-->
<div class="guanzhudianpu">
	<include file="Public:left" />

<!-- 右边-->
	<div class="dianpu_you">
		<h1 class="my">基本信息</h1>
		
		<form action="__URL__/user_edit/" method="post" enctype="multipart/form-data" id="form1" name="form1">
		<div id="form">
		 <div id="one">
        <h3 class="one">账号：</h3>
        <input autocomplete="on" id="Y5" type="text" placeholder="6-12位，限字母和数字" value="{$user.name}" name="name">
        <h4></h4>
     </div>
        <div id="one">
        <h3 class="one">公司/个人：</h3>
        <input autocomplete="on" id="Y1" type="text" placeholder="2-6位中文汉字" value="{$user.uname}" name="uname">
        <h4></h4>
     </div>
       <div id="three">
        <h3 class="three">电 话：</h3>
        <input type="text" id="Y3" placeholder="11位手机号" value="{$user.tel}" name="tel">
        <h4></h4>
       </div>

       <div class="button">
       	<input class="a-1" id="a-1" type="submit" value="保存提交">
       </div>
         </div>
    
<div class="tu">
	<p class="tu_img">
	<if condition="$user.photo eq '' ">
	<img src="__PUBLIC__/img/moren.png" alt="" style="border: solid 1px #dfdfdf;"/>
<else /> 
<img src="{$think_path}{$user.photo}" alt="" />
</if>
</p>
	<h2>仅支持JPG、JIF、PNG、JPEG、BMP</h2>
	<input type="file" name="file" id="file" value="">
</div>
  </form>      
        
    </div>		
</div>
<!--我的订单   end-->

<include file="Public:footer" />
<!--结尾-->
 

</div>
	</body>
</html>
